﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using OgilvyOne.UKNow.BLL;
using System.Text;
public partial class AudioXML : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            int langid = 0;
            try
            {
                langid = int.Parse(Request.QueryString["lang"]);
                GetAudioXML(langid);
            }
            catch (Exception)
            {
                Response.Write("请附带参数 langid=数字");
            }
        }
    }

    public void GetAudioXML(int langid)
    { 
       StringBuilder stb = new StringBuilder();
       stb.Append(new AudioBLL(langid).getxml());
       Response.ContentType = "text/xml";
       Response.Write(stb.ToString());
    }
}